package com.trade.common.utils.model;

/**
 * 返回值实体类
 */
public class Token {
    private String access_token;
    private String token_type;
    private String refresh_token;
    private String expires_in;
    private Object scope;

    private String error; //错误信息
    private String code; //返回代码
    private String msg; //返回信息

    private String error_description;

    public Token() {
    }

    public Token(String code, String msg) {
        super();
        this.code = code;
        this.msg = msg;
    }

    public Token set(String code, String msg) {
        this.code = code;
        this.msg = msg;
        return this;
    }

    public String getError_description() {
        return error_description;
    }

    public void setError_description(String error_description) {
        this.error_description = error_description;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getToken_type() {
        return token_type;
    }

    public void setToken_type(String token_type) {
        this.token_type = token_type;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public String getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(String expires_in) {
        this.expires_in = expires_in;
    }

    public Object getScope() {
        return scope;
    }

    public void setScope(Object scope) {
        this.scope = scope;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}